import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent{
  title = 'angularLearn';
  BlueStyle="buttonStyle"
  isShow=true;
  htmlStr='<span>htmlTest</span>';
  language='chinese';

  languageChange(){
    this.language = this.language?'english':'chinese';
  }

  changeStyle(){
    this.isShow = false;
  }

  userArray:Array<number>=[1,2,3,4,5];

  itemClick(i:number,item:number){
    alert("i= "+i+"    "+"item="+item)
  }

  checkStatus:number = 1;

  username:'steak';
}
